package com.tianjipms.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("sys_parking")
public class Parking {
    private static final long serialVersionUID = 1L;
    /**
     * 停车编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 车辆编号
     */
    private Long vehiclId;
    /**
     * 进入时间
     */
    @TableField(value = "enter_time", fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date enterTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getVehiclId() {
        return vehiclId;
    }

    public void setVehiclId(Long vehiclId) {
        this.vehiclId = vehiclId;
    }

    public Date getEnterTime() {
        return enterTime;
    }

    public void setEnterTime(Date enterTime) {
        this.enterTime = enterTime;
    }
}
